# Copyright (c) 2018 Presto Labs Pte. Ltd.
# Author: jhkim

group_symbol = {
    'a': ['btc-krw'],
    'b': ['bch-krw'],
    'c': ['eth-krw'],
    'd': ['etc-krw'],
    'e': ['xrp-krw'],
    'f': ['qtum-krw'],
    'g': ['ltc-krw'],
    'h': ['iota-krw'],
    'i': ['eos-krw'],
    'j': ['bsv-krw'],
}

# as of 20200507
orderbook_unit_map = {
    'btc-krw': '1000',
    'bch-krw': '100',
    'eth-krw': '100',
    'etc-krw': '5',
    'xrp-krw': '0.1',
    'qtum-krw': '1',
    'ltc-krw': '50',
    'iota-krw': '0.1',
    'eos-krw': '1',
    'bsv-krw': '100',
}

# Dynamically generated orderbook_unit_map
import os
if int(os.getenv('USE_DYNAMIC_SYMBOL', 0)):
  try:
    from coin.exchange.coinone_v2.kr_rest.constants import orderbook_unit_map
    orderbook_unit_map = orderbook_unit_map
  except Exception as e:
    import logging
    logging.error('Failed to use coinone dynamic orderbook_unit_map! %s', e)
